local ls = require("luasnip")
local s = ls.snippet
local i = ls.insert_node
local fmt = require("luasnip.extras.fmt").fmt

ls.add_snippets("racket", {
  -- Function
  s("fn", fmt([[
(define ({} [{} : Real]) : Real
  {})]], {i(1, "name"), i(2, "arg"), i(0, "(+ 1 1)")})),

  -- Print
  s("st", fmt("(displayln {})", {i(0)})),
})
